<?php

/* Author: Panos Sakkos
 * Deletes the entities with the ids given without cross examinating the category owner.
 */

function BL_admin_delete_entities($categoryId, $entityIds)
{
    $i = 0;

    for ($i = 0; $i < count($entityIds); $i++)
    {
        $category = DB_getCategory($categoryId);
        $owner = $category->GetOwner();
        $entity = DB_getEntity($entityIds[$i]);

        DB_category_deleteentity($owner, $category->GetName(), $entity->GetName());
    }
}

?>